<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>顾问端 - 上传协议</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        body {
            max-width: 414px;
            margin: 0 auto;
            background: #f5f5f5;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- 导航栏 -->
    <nav class="bg-white shadow-sm px-4 py-3 flex items-center">
        <i class="fas fa-arrow-left text-gray-600 text-xl mr-4"></i>
        <div class="text-lg font-semibold text-gray-800">上传协议</div>
    </nav>

    <!-- 表单内容 -->
    <div class="px-4 py-4 pb-24">
        <!-- 关联需求 -->
        <div class="bg-white rounded-lg p-4 mb-4 shadow-sm">
            <label class="block text-gray-700 font-medium mb-2">关联需求</label>
            <div class="text-blue-500 text-sm">系统功能优化需求</div>
        </div>

        <!-- 关联报价 -->
        <div class="bg-white rounded-lg p-4 mb-4 shadow-sm">
            <label class="block text-gray-700 font-medium mb-2">关联报价</label>
            <div class="text-blue-500 text-sm">QT20240116001 (¥15,000)</div>
            <div class="text-yellow-600 text-xs mt-1">请确保报价已确认后再上传协议</div>
        </div>

        <!-- 协议编号 -->
        <div class="bg-white rounded-lg p-4 mb-4 shadow-sm">
            <label class="block text-gray-700 font-medium mb-2">协议编号</label>
            <div class="text-gray-400 text-sm">提交后自动生成</div>
        </div>

        <!-- 协议名称 -->
        <div class="bg-white rounded-lg p-4 mb-4 shadow-sm">
            <label class="block text-gray-700 font-medium mb-2">协议名称</label>
            <input type="text" placeholder="请输入协议名称（可选）" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
        </div>

        <!-- 协议文件上传 -->
        <div class="bg-white rounded-lg p-4 mb-4 shadow-sm">
            <label class="block text-gray-700 font-medium mb-2">
                协议文件 <span class="text-red-500">*</span>
            </label>
            <div class="border-2 border-dashed border-gray-300 rounded-lg p-6 text-center">
                <i class="fas fa-cloud-upload-alt text-gray-400 text-4xl mb-3"></i>
                <div class="text-gray-600 text-sm mb-1">点击上传协议文件</div>
                <div class="text-gray-400 text-xs">支持PDF、Word、图片等格式，单个文件不超过50MB</div>
            </div>
        </div>

        <!-- 协议说明 -->
        <div class="bg-white rounded-lg p-4 mb-4 shadow-sm">
            <label class="block text-gray-700 font-medium mb-2">协议说明</label>
            <textarea rows="3" placeholder="请输入协议说明（可选）" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"></textarea>
            <div class="text-right text-gray-400 text-xs mt-1">已输入 0/500 字</div>
        </div>
    </div>

    <!-- 底部提交按钮 -->
    <div class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 p-4" style="max-width: 414px; margin: 0 auto;">
        <button class="w-full bg-blue-500 text-white py-3 rounded-lg font-medium text-lg">
            提交协议
        </button>
    </div>
</body>
</html>

